<template>
  <body class="pbhome">
    <el-container style="height: 100%">
      <el-aside width="15%" class="side-bar" style="text-align: center">
        <h1>欢迎！管理员</h1>
        <el-menu
          class="el-menu-vertical-demo"
          router
          :default-active="$route.path">
          <el-menu-item class="menu-item-font" index="/user"
            >权限管理</el-menu-item
          >
          <el-menu-item class="menu-item-font" index="/backCaseStudy"
            >病例管理</el-menu-item
          >
          <el-menu-item class="menu-item-font" index="/ques"
            >试题管理</el-menu-item
          >
          <el-menu-item class="menu-item-font" index="/paper"
            >试卷管理</el-menu-item
          >
          <el-menu-item class="menu-item-font" index="/dataManage"
            >数据管理</el-menu-item
          >
        </el-menu></el-aside
      >
      <el-container>
        <el-header height="12%" class="header">
          <span style="font-family: 宋体; font-size: 35px">
            虚拟宠物医院后台管理系统
          </span>
        </el-header>
        <el-main style="box-sizing: border-box"
          ><div class="main-box"><router-view></router-view></div
        ></el-main>
      </el-container>
    </el-container>
  </body>
</template>
<script>
export default {
  name: 'home',
  data() {
    return {}
  },
  methods: {},
}
</script>
<style scoped>
.pbhome {
  background-image: url('../../assets/测试的背景.jpg');
  background-size: 100% 100%;
}
.header {
  text-align: center;
  padding-top: 20px;
}
.side-bar {
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 5px;
  font-size: 20px;
}
::v-deep .el-menu {
  background-color: transparent !important;
}
.menu-item-font {
  font-size: 16px;
}
.main-box {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 10px 20px;
}
</style>
